import { LeakTracePathItem } from '@memlab/core'

export interface ILeakBase {
    nodeId: number;
    startTime: number;
    endTime: number;
    duration?: number;  // leaked duration
}

export interface ILeakTrace extends ILeakBase {
    trace: LeakTracePathItem,
}

export interface ILeakUnit extends ILeakBase {
    trace: string[];
}

export interface ILeakResult {
    related: Map<any, any>;
    leaks: ILeakUnit[];
}